# Contributor: Hiroshi Kajisha <kajisha@gmail.com>
# Maintainer: Hiroshi Kajisha <kajisha@gmail.com>
pkgname=rcm
pkgver=1.3.3
pkgrel=2
pkgdesc="rc file (dotfile) management"
url="https://github.com/thoughtbot/rcm"
arch="noarch"
license="BSD-3-Clause"
makedepends="autoconf automake ruby-mustache"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://thoughtbot.github.io/rcm/dist/rcm-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	CONFIG_SHELL=/bin/sh ./configure --prefix=/usr
	make -j1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="aa00edd76ab494a65cf3e97103d3bfffa427af83e57391cbe8e07ad2516b910c85d2e99a24405390fd27feee20752bab4b4856eeb8bac48eeb6f5707875df99a  rcm-1.3.3.tar.gz"
